package com.ultrasoft.farmasoft.repository;

import java.util.List;

import com.ultrasoft.farmasoft.domain.Locality;
import com.ultrasoft.farmasoft.domain.Userprovider;

public interface UserProviderDao {
	public List<Userprovider> getListUserProvider();
	public List<Userprovider> getListUserProvider(boolean active);
	public List<Userprovider> getListUserProviderByRolProviderIdByActive(Integer rolProviderId,boolean active);
	public List<Userprovider> getListUserProviderByRolProviderIdByProviderIdByActive(Integer rolProviderId,Integer providerId,boolean active);
	public List<Userprovider> getListUserProviderByproviderId(Integer providerId);
	public List<Userprovider> getListUserProviderByuserProviderId(Integer userProviderId);
	public List<Userprovider> getListUserProviderByproviderId(Integer providerId,boolean active);
	public List<Userprovider> getListUserProviderByuserProviderId(Integer userProviderId,boolean active);
	public Userprovider findByUserProviderIdByProviderId(Integer userProviderId,Integer providerId);				
    public void update(Userprovider userProvider);
	public void add(Userprovider userProvider);
	public void remove(Userprovider userProvider);
	public Integer findByuserProviderIdMax();
}
